import http from "@/http/index"

export default {

  select: {
    name: "人员查询",
    url: "/yunji-api/person/select",
    call: async function (params: any = {}) {
      return await http.get(this.url, params);
    }
  },
  add: {
    name: "人员添加",
    url: "/yunji-api/person/insert",
    call: async function (params: any = {}) {
      return await http.post(this.url, params);
    }
  },
  update: {
    name: "人员修改",
    url: "/yunji-api/person/update",
    call: async function (params: any = {}) {
      return await http.put(this.url, params);
    }
  },
  updateFlag: {
    name: "人员修改",
    url: "/yunji-api/person/update/faceflag",
    call: async function (params: any = {}) {
      return await http.get(this.url, params);
    }
  },
  delete: {
    name: "人员删除",
    url: "/yunji-api/person/delete",
    call: async function (params: any = {}) {
      return await http.delete(this.url, params);
    }
  }

}
